<?php
define('WP_USE_THEMES', true);

global $more_article;

$blog='NULL';
$blogdata='NULL';
$optiondomain = 'system';
$_REQUEST['b']='system';

require('private.php');
require(CONFIGPATH . 'wp-config.php');
require_once( ABSPATH . WPINC . '/registration-functions.php');

require('portal.lib');

$time_begin= microtime(true);


get_currentuserinfo();
$SITE_TITLE = get_settings('site_title');


if($_GET["CAT_NAME"]){
		$line->cat_name=urldecode($_GET["CAT_NAME"]);
		$line->cat_name=stripslashes($line->cat_name);
		$catalog[0]=$line;
		$record_num=30;	
		$more_article=1;
}



?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" href="/blogs/xys/favicon.ico" type="image/x-icon" />
<link title="RSS" type="application/rss+xml" rel="alternate" href="http://www.de-sci.org/blogs/rss.php" charset="utf-8" />
<title><?php echo $SITE_TITLE ?>(Beta)</title>

<link rel="stylesheet" href="<?php echo WEBROOT ?>/wp-content/portal/style.css" type="text/css" media="screen" />

<META NAME='KEYWORDS' CONTENT='德赛公园 博客 原新语丝读者网 科学 民主'/>

<META NAME="description" content="德赛公园是一个以宣传科学和民主为目的博客网站。">
	
<style type="text/css" media="screen">
</style>
</head>
<body>



<?php


?>


<?php 

if ($user_identity) { ?>
<div id="status">
	<div class="description"><?php  echo "logged in as <em>$user_identity</em>"?> [<a href="login?action=logout">Log Out</a>]</div>
Lyceum
</div>
<?php } else { ?>
<div id="status" class="closed">&nbsp;</div>
<?php } ?>

<table border=0 align=center width=900 class="mybody">
<tr>
<td>

<div id="page">

<div id="header" style="background-image:url('./image/de-sci-logo.png');
background-repeat: no-repeat;" align="right">

	
<?php if ( isset($_SESSION['slug_error']) ) : ?>
	<div style="background: #FFEFF7; border: 1px solid #c69; margin: -1em 5% 10px; padding: 0 1em 0 1em; text-align: center; font-size: 15px;" align=center>
	<?php
	echo $_SESSION['slug_error'];
	?>
	</div>
	<?php unset($_SESSION['slug_error']); endif; ?> 

	<div id="sys-login" class="widecolumn">
<?php

	echo '<h3>&nbsp;';
	
	if ($userdata->user_admin){
 	 echo '<a href="system-admin/settings.php">System Settings</a>	&nbsp;';
	}
	
	$myblogs = get_userblogs();
	$sys_admin_user=0;
	if ($myblogs) {
		echo "我的博客: ";
		foreach ($myblogs as $b){
			echo "<a href=\"".$b->home."/admin\">$b->blogname</a>&nbsp;\n";
			if($b->id ==2) $sys_admin_user=1;
		}	
		if($sys_admin_user){
			echo "<a href=\"http://www.de-sci.org/xys/p_cat_show.php?cat_id=28066&admin_mode=on\">[[推荐文章 管理]]</a>&nbsp;\n";
		}
	}else {
		//echo "You do not have permissions on any blogs. Click <em>Register</em> above to make a username and a blog.";
	}
	echo "</h3><br>	";
?>


	<h3>
 	<a href="http://www.de-sci.org">回首页</a>&nbsp;
<?php
	if (!$user_identity) {
		echo ' <a href="./blog_register/">';
		_e('Register');
		echo '</a>&nbsp;<a href="login">'.__('Login').'</a>';
	} else {
		echo '<a href="login?action=logout">'.__('Logout').'</a>';
	}
	echo '&nbsp;<font color=#A1A>||</font>&nbsp;<a href="http://www.de-sci.org/blogs/zhongyantang/help/">帮助</a>';
	echo '-<a href="/blogs/sys_admin/">反馈</a> ';
	echo '&nbsp;<font color=#A1A> </font>&nbsp;<a href="./rss.php">RSS <img width=25 style="border:0px;" src="image/rss.jpg"></a>';
	echo ' </h3>';

	echo "</div>";

?>

</div>

<h2 align=center >由 <a href=http://www.google.com/friendconnect/ >Google Friend Connect</a>为德赛公园提供的在线交流服务</h2>

<br>
<table width=100% border=0>
<tr>
<td width=550 valign=top>

<!-- Include the Google Friend Connect javascript library. -->
<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>

<!-- Define the div tag where the gadget will be inserted. -->
<div id="div-1229403877243" style="width:500px;border:1px solid #cccccc;"></div>
<!-- Render the gadget into a div. -->
<script type="text/javascript">
var skin = {};
skin['BORDER_COLOR'] = '#cccccc';
skin['ENDCAP_BG_COLOR'] = '#e0ecff';
skin['ENDCAP_TEXT_COLOR'] = '#333333';
skin['ENDCAP_LINK_COLOR'] = '#0000cc';
skin['ALTERNATE_BG_COLOR'] = '#ffffff';
skin['CONTENT_BG_COLOR'] = '#ffffff';
skin['CONTENT_LINK_COLOR'] = '#0000cc';
skin['CONTENT_TEXT_COLOR'] = '#333333';
skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
skin['CONTENT_HEADLINE_COLOR'] = '#333333';
skin['DEFAULT_COMMENT_TEXT'] = '- \u6dfb\u52a0\u7559\u8a00 -';
skin['HEADER_TEXT'] = '\u7559\u8a00';
skin['POSTS_PER_PAGE'] = '15';
google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
google.friendconnect.container.renderWallGadget(
 { id: 'div-1229403877243',
   site: '11838216684392394290',
   'view-params':{"scope":"SITE","features":"video,comment"}
},
  skin);
</script>

</td>
<td  valign=top >

<!-- Include the Google Friend Connect javascript library. -->
<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>

<!-- Define the div tag where the gadget will be inserted. -->
<div id="div-1229345294020" style="width:282px;border:1px solid #cccccc;"></div>
<!-- Render the gadget into a div. -->
<script type="text/javascript">
var skin = {};
skin['HEIGHT'] = '425';
skin['BORDER_COLOR'] = '#cccccc';
skin['ENDCAP_BG_COLOR'] = '#e0ecff';
skin['ENDCAP_TEXT_COLOR'] = '#333333';
skin['ENDCAP_LINK_COLOR'] = '#0000cc';
skin['ALTERNATE_BG_COLOR'] = '#ffffff';
skin['CONTENT_BG_COLOR'] = '#ffffff';
skin['CONTENT_LINK_COLOR'] = '#0000cc';
skin['CONTENT_TEXT_COLOR'] = '#333333';
skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
skin['CONTENT_HEADLINE_COLOR'] = '#333333';
google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
google.friendconnect.container.renderMembersGadget(
 { id: 'div-1229345294020',
   site: '11838216684392394290'},
  skin);
</script>
</td>
</tr>
</table>


<div id="footer">
&nbsp;|<a href="http://groups.google.com/group/xys-blog/web/%E8%AF%BB%E8%80%85%E7%BD%91%E5%8D%9A%E5%AE%A2%E7%AD%B9%E5%BB%BA%E8%AE%A1%E5%88%92%E4%B9%A6?hl=zh-CN">关于本站</a>  | 
<a href="http://groups.google.com/group/xys-blog/web/%E8%8D%89%E6%A1%88%EF%BC%9A%E5%8D%9A%E5%AE%A2%E7%BD%91%E7%AB%99%E6%9C%8D%E5%8A%A1%E6%9D%A1%E6%AC%BE?hl=zh-CN">服务条款</a> | 
<a href="http://groups.google.com/group/xys-blog/web/%E7%AE%A1%E7%90%86%E5%A7%94%E5%91%98%E4%BC%9A?hl=zh-CN">维护小组</a>-<a href="/blogs/sys_admin/">Blog</a> |
<a href="http://code.google.com/p/c-lyceum/"> Our Project@Google Code</a>|
<a href="http://www.de-sci.org/blogs/portal.php?refresh=1"> Refresh Site </a>|
<a href="/blogs/sys_admin/">反馈</a> |

&nbsp; Powered by LYCEUM and Wordpress</p>
</div>
	</div>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2718547-1";
urchinTracker();
</script>

</td>
</tr>
</table>


</body>
</html>

<?php

$time_end=microtime(true);
$time_used= - $time_begin + $time_end;
echo "\n<!-- $time_begin - > $time_end = $time_used  -->\n";


?>
